.custom-tm-wrapper {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 50px auto;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.custom-tm-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: #333;
}

.custom-tm-header p {
    color: #7dd3f7;
    margin-bottom: 40px;
}

.custom-tm-container {
    position: relative;
    padding: 60px 0;
}

/* 虚线背景 */
.custom-tm-container::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    height: 2px;
    border-top: 2px dashed #ccc;
    z-index: 1;
}

.custom-tm-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    z-index: 2;
    position: relative;
}

.custom-tm-item {
    flex: 0 0 20%; /* 默认一行显示5个 */
    min-width: 200px;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 菱形点 */
.custom-tm-dot {
    width: 16px;
    height: 16px;
    background-color: #7dd3f7;
    margin: 0 auto 20px;
    transform: rotate(45deg);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #7dd3f7;
    z-index: 3;
    position: relative;
}

/* 垂直虚线 */
.custom-tm-dot::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    height: 40px;
    border-left: 1px dashed #ccc;
    transform: rotate(-45deg); /* 抵消父元素的旋转 */
    transform-origin: top;
}

/* 小方块标识 */
.custom-tm-dot::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #7dd3f7;
    transform: rotate(-45deg);
    left: 50%;
    margin-left: -4px;
}

.custom-tm-content h3 {
    margin: 40px 0 10px;
    font-size: 18px;
    color: #000;
}

.custom-tm-content p {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

/* 按钮样式 */
.custom-tm-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-tm-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: #7dd3f7;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-tm-btn:hover {
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .custom-tm-item { flex: 0 0 50%; } /* 手机端一行2个 */
}
