.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 2.2em 2em;
    border-radius: .6em;
    position: relative;
}

.tool-content .timestamp-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 10px;
    font-family: var(--font-simple);
}

.tool-content .timestamp-item .date-fields{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 10px;
}

.tool-content .now-timestamp {
    border: solid 1px rgb(90 77 248 / 15%);
    background-color: rgb(90 77 248 / 5%);
    color: rgb(90 77 248);
    width: 145px;
    height: 36px;
    line-height: 36px;
    padding: 0 15px;
    margin: 0 10px;
    border-radius: 6px;
    font-family: "Geist Mono", "Geist Mono Fallback";
    font-size: 15px;
    font-weight: 700;
}

/* 单位文字 */
.tool-content .timestamp-unit {
    font-family: var(--font-simple);
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-content hr {
    border: none;
    height: 0;
    border-top: 1px solid #ddd;
    margin: 2.2em 0;
    padding: 0;
}

.btn-stop {
    background-color: #dc2626 !important;
    color: #fff !important;
    border-color: #dc2626;
}

.btn-start {
    background-color: #00a200 !important;
    color: #fff !important;
    border-color: #00a200;
}

.btn-black {
    background-color: #454647 !important;
    color: #fff !important;
}

/*按钮样式*/
.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;
}

/* 关键动画：扩散 + 淡出 */
@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/*文本框样式*/
.input-text {
    border: solid 1px #ddd;
    background-color: var(--main-bg);
    min-width: 150px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
}

.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); /* 外发光点缀（可选） */
}

.input-number {
    border: 1px solid #ddd;
    background-color: var(--main-bg);
    width: 80px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-family: var(--font-simple);
    outline: none;
    font-size: 14px;
    text-align: center;
}

.input-number: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);
}

.input-short {
    width: 48px;
}

/* 针对 WebKit 浏览器（Chrome, Safari, Edge） */
.input-number::-webkit-inner-spin-button,
.input-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 针对 Firefox 浏览器 */
.input-number {
    -moz-appearance: textfield;
}

/*自定义下拉框样式*/
.custom-select {
    position: relative;
    display: inline-block;
    font-family: var(--font-simple);
}

.custom-select .btn {
    justify-content: space-between;
    padding-right: 8px;
    gap: 8px;
    width: 165px;
    white-space: nowrap;
}

.custom-select .btn span{
    width: 120px;
    overflow: hidden;
}

/* 箭头旋转 */
.custom-select[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

.arrow-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* 下拉菜单 */
.select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-height: 321px;
    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: 0;
    white-space: nowrap;
}

/* 选项 */
.select-dropdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 13.7px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

/* hover 背景 */
.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;
}

/*辅助信息*/
.tool-help {
    position: relative;
}

.help-section{
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    margin: 1.2em 0;
}

.tool-help .help-section p strong{
    font-family: var(--font-family);
}

.table-container .code-line{
    border: solid 1px #ddd;
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 7px;
}

.table-container .code-line code{
    font-family: var(--font-simple);
}

/*在线打赏模块*/
.custom-section{
    background-color: var(--main-bg);
    margin-top: 1.5em;
    padding: 3.5rem 0;
}

.custom-section h2{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.custom-section p{
    color: #4b5563;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 16px;
}

.custom-section img{
    margin: 0 auto;
    width: 330px;
    border-radius: 0.38rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.tool-card {
    display: block;
    background-color: var(--main-bg);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.tool-card-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
}

.tool-card-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.tool-card-title span {
    font-size: 16px;
    font-weight: 600;
    font-family: Source Han sans-serif;
}

.tool-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    width: 100%;
    color: #526172;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    min-height: 40px;
    margin: 0;
    text-align: left;
    font-family:
            "DeepSeek-CJK-patch",
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            "Noto Sans",
            Ubuntu,
            Cantarell,
            "Helvetica Neue",
            Oxygen,
            "Open Sans",
            sans-serif;
}

@media (max-width: 768px) {
    .tool-content{
        padding: .9em;
    }

    .tool-content hr{
        margin: .9em 0;
    }

    .custom-select .btn{
        width: unset;
    }
}
